﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ipIncluirParamBenefSV.aspx.cs" Inherits="_includes__popup_ipIncluirParamBenefSV" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register TagPrefix="uc1" TagName="HeadTag"  Src="~/_includes/HeadTag.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <!-- Includes -->
    <uc1:HeadTag ID="HeadTag1" runat="server" />    
    <title>Parâmetro de Benefício: Seguro de Vida</title>
</head>
<body>
    <form id="form1" runat="server">
        <script type="text/javascript">
            function CloseAndRebind(args)
            {
                GetRadWindow().Close();
                GetRadWindow().BrowserWindow.refreshGrid(args);
            }
    		
            function GetRadWindow()
            {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)
    				
                return oWindow;
            }

            function CancelEdit()
            {
                GetRadWindow().Close();		
            }
        </script>
        
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        
        <table width="99%" class="textoCZ_12B" align="right">
            <tr id="trMensagem" runat="server" visible="false">
                <td valign="middle" style="background-color:#FFFFAA; height:25px; width:100%">
                    &nbsp;&nbsp;<asp:Label ID="lblResultado" runat="server" Text="" Font-Names="Verdana" Font-Size="9"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="subTitulo_pagina">Dados de Parâmetro do Benefício: Seguro de Vida</div>
                    <div class="espaco"></div>
                </td>
            </tr>
            <tr>
                <td>
                
                    <table class="textoCZ_12B">
                        <tr>
                            <td style="width: 230px">Seguro de Vida obrigatório?</td>
                            <td>
                                <telerik:RadComboBox ID="rcbSegVidaObrigatorio" runat="server" Skin="Telerik" EmptyMessage="Selecione uma opção" 
                                    AllowCustomText="true" Font-Names="Verdana">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="Não" Value="N" />
                                        <telerik:RadComboBoxItem Text="Sim" Value="S" />
                                    </Items>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="rcbSegVidaObrigatorio"
                                    InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 230px">Desconto em folha?</td>
                            <td>
                                <telerik:RadComboBox ID="rcbDescontoFolha" runat="server" Skin="Telerik" EmptyMessage="Selecione uma opção"
                                    AllowCustomText="true" Font-Names="Verdana">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="Não" Value="N" />
                                        <telerik:RadComboBoxItem Text="Sim" Value="S" />
                                    </Items>    
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="rcbDescontoFolha"
                                    InitialValue="" ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>Validade (Data Inicial):</td>
                            <td>
                                <telerik:RadDatePicker ID="rdpDataInicial" runat="server" DateInput-DateFormat="dd/MM/yyyy" Font-Names="Verdana"></telerik:RadDatePicker>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="rdpDataInicial"
                                    InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                        <tr>
                            <td>Validade (Data Final):</td>
                            <td>
                                <telerik:RadDatePicker ID="rdpDataFinal" runat="server" DateInput-DateFormat="dd/MM/yyyy" Font-Names="Verdana"></telerik:RadDatePicker>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator6" ControlToValidate="rdpDataFinal"
                                    InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                    </table>
                
                </td>
            </tr>
            <tr>
                <td align="right">
                <br />
                <asp:Button ID="btnSalvar" runat="server" Text="Gravar" Width="110px" ValidationGroup="1" CausesValidation="true" onclick="btnSalvar_Click" />&nbsp;&nbsp;
                <asp:Button ID="btnLimpar" runat="server" Text="Limpar" Width="110px" onclick="btnLimpar_Click" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
